<?=isset($header) ? $header : ''?>
<div id="content">
	<div class="form_style">
		<!-- nav1 start-->
		<form method="post" action="/object/batch_data_delete" id="userinfo">
			<table>
				<thead>
					<tr>
						<th>選擇</th>
						<th>所有權人</th>
						<th>委托人</th>
						<th>物件案名</th>
						<th>建物面積</th>
						<th>總價</th>
						<th>車位數</th>
						<th>建物門牌</th>
						<th width="70px">操作</th>
					</tr>
				</thead>
				<tbody id="page_content">
					<?php
					foreach($result->result() as $key=>$val){
					?>
					<tr>
						<td width="10" align="center">
						<input type="checkbox" name="demand[]" id="demand_check_box" value="<?=$val->object_id?>">
						</td>
						<td><?=$val->owner?></td>
						<td><?=$val->principal?></td>
						<td><?=$val->case_name?></td>
						<td><?=$val->building_area?></td>
						<td><?=$val->sale_total?></td>
						<td><?=$val->use_parking_number?></td>
						<td><?=$val->house_building?></td>
						<td width="70px">
							
							<a href="<?=site_url('/object/info/'.$val->object_id)?>"><img src="/images/magnifier.png" title="查看" border="0"></a>

						</td>
					</tr>
					<?
					}
					?>					
				</tbody>
				<tfoot>
				<tr>
					<td colspan="15">
					<div>
						<div style="float:left;vertical-align:baseline">
							<input type="checkbox" name="select_client" id="select_client" onclick="selectCheckBox()" >&nbsp;<span class="allchoose">全选</span><!--&nbsp;&nbsp;<input type="submit" onclick="checkform()" value="批量刪除">&nbsp;-->&nbsp;&nbsp;<input type="button"  value="轉EXCEL" onclick="window.open('<?=site_url('/object/excel')?>','newwindow','resizable=yes,location=no');" class="input_background">
						</div>
						<?=$victor_page ?>
						<div style="float:right;display:none;">
							 <div class="pager fl">
							<? if($page['num_pages']>1){?>
							<span class="nav" id="pagination_previous_span"> </span><input type="hidden" id="pagination_query_condition" name="pagination_query_condition" value="<?=$query_condition?>">
							<input type="hidden" id="pagination_sequence" name="pagination_sequence" value="<?=$sequence?>"><span class="pages"> 共
                        <input id="pagination_pages" class="post" type="text" value="1" name="pagination_pages" style="width:20px;">
                        /<?=$page['num_pages']?> </span> <input type="hidden" id="pagination_num_pages" name="pagination_num_pages" value="<?=$page['num_pages']?>">
							<input type="hidden" id="pagination_url" name="pagination_url" value="<?=$page['url']?>"><span class="nav" id="pagination_next_span"> <a title="next page" class="next" href="#" onclick='pagination_next()'><span>Next</span></a> <a title="last page" class="last" href="#" onclick='pagination_last()'><span>Last</span></a> </span>
							<?
							}else{
							?>
							<span class="pages">共<?=$page['num_pages']?>頁</span>
							<?
							}
							?>
						</div>
						</div>
					</div>
					</td>
				</tr>
				</tfoot>
			</table>
			</form>
	</div>
</div>
<?=isset($footer) ? $footer : ''?>